'use strict';
module.exports = (app) => {
  const { STRING, INTEGER, TEXT } = app.Sequelize;
  const Carousel = app.model.define('w_carousel', {
    id: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    url: {
      comment: '图片地址',
      type: TEXT('long'),
      allowNull: false,
    },
    carouselGroupId: {
      comment: '轮播图分组id',
      type: INTEGER,
      allowNull: false,
    },
    projectId: {
      comment: '项目id',
      type: INTEGER,
      allowNull: false,
    },
  });
  return Carousel;
};
